gui/macOS: Do not automatically configure file provider domains for new accounts
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 18 Feb 2025 03:26:03 +0000 (11:26 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 13 Mar 2025 10:29:11 +0000 (11:29 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/fileproviderdomainmanager.h
src/gui/macOS/fileproviderdomainmanager_mac.mm

index ecbed149c9f39609c2b9e3a5cca42f23fcdb2784..d7583d0d73c73ea6ca14c2e77d97ac754985488d 100644 (file)
@@ -41,11 +41,13 @@ public:
 signals:
     void domainSetupComplete();
 
+public slots:
+    void addFileProviderDomainForAccount(const OCC::AccountState * const accountState);
+
 private slots:
     void setupFileProviderDomains();
     void updateFileProviderDomains();
 
-    void addFileProviderDomainForAccount(const OCC::AccountState * const accountState);
     void removeFileProviderDomainForAccount(const OCC::AccountState * const accountState);
     void disconnectFileProviderDomainForAccount(const OCC::AccountState * const accountState, const QString &reason);
     void reconnectFileProviderDomainForAccount(const OCC::AccountState * const accountState);
index ac40f3c1bc92280f506349b26e5ca3523fc441bc..7af19491d9a443ea550e160a706b62ebbccf8cb6 100644 (file)
@@ -511,8 +511,6 @@ void FileProviderDomainManager::start()
 
     setupFileProviderDomains();
 
-    connect(AccountManager::instance(), &AccountManager::accountAdded,
-            this, &FileProviderDomainManager::addFileProviderDomainForAccount);
     // If an account is deleted from the client, accountSyncConnectionRemoved will be
     // emitted first. So we treat accountRemoved as only being relevant to client
     // shutdowns.